import React, { Component } from "react";
import {connect} from 'react-redux'
import {getUserList} from '../../redux/chat.redux'
import UserCard from '../usercard'


@connect(
  state=>state.chatuser,
  {getUserList}
)

class Boss extends Component {
  componentDidMount() {
   this.props.getUserList('genius')
  }
  render() {
    return <UserCard userlist={this.props.userlist}></UserCard>
  }
}

export default Boss;
